package com.zjp.pojo;

import cn.hutool.core.util.TypeUtil;
import lombok.Getter;
import lombok.Setter;

import java.lang.reflect.Type;

@Getter
@Setter
public class SyData<T> {
    private String id;
    private T data;


    public void data() {
        Type type = TypeUtil.getTypeArgument(this.getClass(), 0);

        Type[] typeArguments = TypeUtil.getTypeArguments(this.getClass());

        System.out.println("------------------------------");
    }


}
